package com.ptone.messagecenter.modules.msg.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ptone.messagecenter.common.base.PageForm;
import com.ptone.messagecenter.modules.msg.dto.MsgRecordsDTO;
import com.ptone.messagecenter.modules.msg.entity.MsgRecords;

/**
 * 消息记录：service
 *
 * @author:Lance
 */
public interface MsgRecordsService extends IService<MsgRecords> {
    /**
     * 新增
     *
     * @param msgRecordsDTO
     * @return
     */
    Boolean insert(MsgRecordsDTO msgRecordsDTO);

    /**
     * 修改
     *
     * @param entity
     * @return
     */
    Boolean update(MsgRecords entity);

    /**
     * 删除
     *
     * @param entity
     * @return
     */
    Boolean delete(MsgRecords entity);

    /**
     * 详情
     *
     * @param entity
     * @return
     */
    MsgRecords info(MsgRecords entity);

    /**
     * page
     *
     * @param form
     * @return
     */
    IPage<MsgRecords> page(PageForm<MsgRecords> form);
}
